package com.lcf.order;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @SpringBootApplication
 * @EnableDiscoveryClient
 * @EnableCircuitBreaker 开启断路器功能
 *
 * @SpringCloudApplication一个注解集成了以上三个注解
 *
 * 如果有些依赖包上有@Component注解,需要加载到spring容器中,那么可以加大包的扫描范围或者指定扫描路径
 * @ComponentScan(basePackages = "com.lcf")
 *
 * Created by lancf on 2019/7/8.
 */
//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableCircuitBreaker
@EnableFeignClients
@SpringCloudApplication
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
